/**
*  \file i2cgi.h
*
*  \brief i2c generic interface
*
*  \author Michael J. Hohmann  michael.hohmann@linde-mh.de
*
*
*
*
*
*/
#ifndef I2CGI_H_INCLUDED
#define I2CGI_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"

/*================================================[ public defines   ]================================================*/

/*================================================[ public datatypes ]================================================*/
enum i2cgi_cmd
{
   i2cgi_cmd_continue     = 0x00,
   i2cgi_cmd_start        = 0x01,
   i2cgi_cmd_stop         = 0x02,
   i2cgi_cmd_start_stop   = 0x03,
};

typedef BO (*i2cgi_transmit_func_t)(enum i2cgi_cmd cmd, U8 control, void* data, pal_size_t len );


enum i2cgi_ctrl
{
   i2cgi_ctrl_write       = 0x00,
   i2cgi_ctrl_read        = 0x01,
};


/*================================================[ public variables ]================================================*/

/*================================================[ inline functions ]================================================*/

/*================================================[ public functions ]================================================*/

/*====================================================================================================================*/

#endif

/***********************************************************************************************************************
*                             Copyright 2020 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
